.wrapper {
  position: sticky;
  top: var(--docs-header-height);
  padding-top: var(--mantine-spacing-xl);
  flex: 0 0 var(--docs-table-of-contents-width);

  @mixin smaller-than $docs-toc-breakpoint {
    display: none;
  }

  &[data-with-tabs] {
    padding-top: 0;
    top: calc(var(--docs-header-height) + var(--mantine-spacing-md));
  }
}

.inner {
  padding-bottom: var(--mantine-spacing-xl);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.link {
  display: block;
  border-left: 1px solid transparent;
  padding: 6px var(--mantine-spacing-md);
  margin-left: -1px;
  padding-left: calc(var(--toc-link-offset) * var(--mantine-spacing-lg));
  font-size: 13px;
  font-weight: 500;
  color: light-dark(var(--mantine-color-gray-7), var(--mantine-color-dark-1));
  border-top-right-radius: var(--mantine-radius-sm);
  border-bottom-right-radius: var(--mantine-radius-sm);

  &[data-active] {
    border-color: var(--mantine-color-blue-5);
    color: light-dark(var(--mantine-color-blue-8), var(--mantine-color-blue-2));
    background-color: light-dark(
      var(--mantine-color-blue-0),
      alpha(var(--mantine-color-blue-6), 0.17)
    );
  }
}

.title {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: var(--mantine-spacing-md);
  color: var(--mantine-color-bright);
}

.items {
  border-inline-start: 1px solid
    light-dark(var(--mantine-color-gray-3), var(--mantine-color-dark-5));
}

.editPage {
  color: var(--mantine-color-bright);
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: var(--mantine-font-size-sm);
  margin-top: var(--mantine-spacing-md);
  padding-top: var(--mantine-spacing-md);
  border-top: 1px solid light-dark(var(--mantine-color-gray-1), var(--mantine-color-dark-6));

  @mixin hover {
    text-decoration: underline;
  }
}

.editPageIcon {
  color: var(--mantine-color-dimmed);
}
